package com.jit.app.model;

/**
 * Created by lenovo on 2020/12/25.
 */

public class Constants {

    public static class HOST{
        public static final String API_HOST = "http://192.168.53.23:8080";
        public static final String FILE_HOST = "http://192.168.53.23:8081";
    }

    public static class ApiURI{
        public static final String URI_GETAPPINFOLIST = "/market/appInfoServlet?method=getAppInfoList";
        public static final String URI_GETGameAPPINFOLIST = "/market/appInfoServlet?method=getGameOrSoftAppList";
        public static final String URI_GETADLIST = "/market/adPromotionServlet?method=getAdPromotion";
        public static final String URI_GETAPPDETAIL = "/market/appInfoDetailServlet?method=getAppInfoDetail";
        public static final String URI_COMMENTSTATISTIC = "/market/appCommentServlet?method=getAppCommentStatistic";
        public static final String URI_COMMENTLIST = "/market/appCommentServlet?method=getAppCommentList";
        public static final String URI_REPLAYLIST = "/market/commentReplayServlet?method=getCommentReplayList";
        public static final String URI_USERCOMMENT = "/market/appCommentServlet?method=getAppUserComment";
        public static final String URI_LOGIN = "/market/userInfoServlet?method=login";
        public static final String URI_SAVECOMMENT = "/market/appCommentServlet?method=saveAppComment";
        public static final String URI_INSTALLEDAPPLIST = "/market/appInfoServlet?method=getInstalledAppInfoList";
    }

    public static class ResultCode{
        public static final int SUCCESS = 200;
        public static final int ERROR = 500;
        public static final int NOT_FOUND = 404;

        public static final int INVALID_AUTH = 304;
    }

    public static class MessageWhat{
        public static final int APPINFO_LOAD_SUCCESS = 100;
        public static final int ADPROMOTION_LOAD_SUCCESS = 101;

        public static final int PROCESS_CHANGE = 301;
        public static final int DOWNLOAD_COMPLETE = 300;


        public static final int COMMENTLIST_LOAD_SUCCESS = 600;
        public static final int COMMENTSTATISTIC_LOAD_SUCCESS = 601;

        public static final int REPLAYLIST_LOAD_SUCCESS = 700;

        public static final int USERCOMMENT_LOAD_SUCCESS = 800;

        public static final int LOGIN_LOAD_SUCCESS = 1000;

        public static final int COMMENT_SAVE_SUCCESS = 1100;
        public static final int GAMEAPPINFO_LOAD_SUCCESS = 200;
    }
}
